var express = require('express');
var router = express.Router();
const mongoose = require('mongoose');
require("../model/testsModel");
require("../model/studentsModel");

const testedSchema = new mongoose.Schema({
    score: String,
    studentId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref:'studentsModel'
},
    testId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref:'testsModel'
},

});

mongoose.model('testedModel', testedSchema, 'testeds');